package com.ytjj.qmyx.admin.dao;

import com.ytjj.qmyx.admin.model.request.BankerApplyRequest;
import com.ytjj.qmyx.admin.model.response.BankerApplyResponse;
import com.ytjj.qmyx.mall.model.BankerProduct;
import com.ytjj.qmyx.mall.model.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 *
 * @Version: 1.0
 */
public interface BankerApplyDao {

    List<BankerApplyResponse> selectList(BankerApplyRequest request);

    Integer downProduct(@Param("bankerProductId") Integer bankerProductId, @Param("status") Integer status);

    Integer downBankerProduct(@Param("bankerProductId") Integer bankerProductId, @Param("status") Integer status);

    Integer downAuditStatus(@Param("bankerProductId") Integer bankerProductId, @Param("auditStatus") Integer auditStatus);

    Integer applyStatus(@Param("bankerProductId") Integer bankerProductId, @Param("status") Integer status);

    Integer getBankerId(Integer bankerProductId);

    List<String> getActivityType(Integer bankerProductId);

    Product selectByBankerProductId(@Param("bankerProductId") Integer bankerProductId);

    BankerProduct selectById(@Param("bankerProductId") Integer bankerProductId);

    Integer updateBankerProduct(BankerProduct bankerProduct);

}
